BUILD=/home/james/Code/C/Linux/jimix/jimix/build
CXX=$(BUILD)/g++
SOURCES=main.o
CXXFLAGS=-fno-stack-protector -m32 -fno-rtti -I../../src/lib/include -DINIT

all: $(SOURCES)
ifndef LOUD
	@echo "[init]"
else
	@echo "@$(CXX) -o init $(SOURCES)"
endif
	@$(CXX) -o init $(SOURCES)

clean:
	-@rm init $(SOURCES)

.cc.o:
ifndef LOUD
	@echo "[$(@F)]"
else
	@echo "$(CXX) $(CXXFLAGS) -o $@ -c $<"
endif
	@$(CXX) $(CXXFLAGS) -o $@ -c $<
